/* 毕业生 */
import { request } from './request'


/**
 * 毕业生数据
 * @param {*年级} grade 
 * @param {*专业} major 
 * @param {*班级} team 
 * @param {*学号} sno 
 * @param {*姓名} sname 
 * @param {*指导老师} instructor 
 * @param {*当前页} currentPage 
 * @param {*页面容量} pageSize 
 */
export function _getGraduateData (grade, major, team, sno, sname, instructor, currentPage, pageSize) {
    return request({
        url: '/graduateInfo/getGraData',
        params: {
            grade: grade,
            major: major,
            team: team,
            sno: sno,
            sname: sname,
            instructor: instructor,
            currentPage: currentPage,
            pageSize: pageSize
        }
    })
}


/* 毕业生批量删除 */
export function _batchDelStu (ids) {
    return request({
        url: '/graduateInfo/batchDelGra',
        params: {
            ids: ids
        }
    })
}

/* 毕业生单个删除 */
export function _delStu (id) {
    return request({
        url: '/graduateInfo/delGra',
        params: {
            snoId: id
        }
    })
}

/**
 * 

 * 获取指导老师
 * @param {*年级} grade 
 * @param {*专业} major 
 * @param {*班级} team 
 */
export function _getInstructor (grade, major, team) {
    return request({
        url: '/graduateInfo/getInstructor',
        params: {
            grade: grade,
            major: major,
            team: team
        }
    })
}

/* 根据学号查询姓名 */
export function _querySname (sno) {
    return request({
        url: '/graduateInfo/querySname',
        params: {
            sNo: sno
        }
    })
}



/* 增加一条毕业生信息 */
export function _addGraInfo (graData, gradeId, major, team) {
    return request({
        url: '/graduateInfo/addGraInfo',
        params: {
            graduateInfo: graData,
            grade: gradeId,
            major: major,
            team: team
        }
    })
}



/* 修改毕业生信息 */
export function _editGraInfoById (graData) {
    return request({
        url: '/graduateInfo/editGraInfoById',
        params: {
            graduateInfo: graData
        }
    })
}


/* 下载模板接口 */
export function _downTemplate () {
    return request({
        url: '/graduateInfo/downloadTemplate'
    })
}



/* 获取就业方向数据 */
export function _getAllData (gradeId) {
    return request({
        url: '/graduateInfo/getAllData',
        params: {
            gradeId: gradeId
        }
    })
}